<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>一款基于JQuery做的动画背景后台管理登录模板 - </title>

<link href="resources/admin/css/main.css" rel="stylesheet" type="text/css" />

</head>
<body>


<div class="login">
    <div class="png">
        <div class="logo png"></div>
        <div class="input">
            <div class="log">
            <form action="" method="post">


                <div class="name">
                    <label>用户名</label><input type="text" class="text" id="value_1" placeholder="用户名" name="username" tabindex="1" value="<?php echo (!empty($_COOKIE['username']))?$_COOKIE['username']:'';?>">
                </div>
                <div class="pwd">
                    <label>密　码</label><input type="password" class="text" id="value_2" placeholder="密码" name="password" tabindex="2" value="<?php echo (!empty($_COOKIE['password']))?$_COOKIE['password']:'';?>">
                    <p style="line-height: 50px;">
                        <label>验证码</label><input type="text" class="text" id="" style="width:60px;"  name="code" tabindex="2">
                        <span class="code" style="color:#777;font-size: 12px;"><img src="index.php?c=admin&a=code&admin=1"  style="padding-top:20px">看不清？换一张</span>
                    </p>
                    <label></label><input type="checkbox" class="check" <?php echo (!empty($_COOKIE['username']))?'checked':'';?> name="check" value="1">记住我
                    <label></label><input type="checkbox" name="auto_login"  value="1">自动登录
                    <input type="submit" class="submit" tabindex="3" value="登录">
                    <a href="index.php?c=admin&a=sign-up&admin=1" style="padding-left: 5px;">没有帐号？立即注册</a>

                    <div class="check"></div>
                </div>
            </form>
                <div class="tip"></div>
            </div>
        </div>
    </div>
    <div class="air-balloon ab-1 png"></div>
    <div class="air-balloon ab-2 png"></div>
    <div class="footer"></div>
</div>

<script type="text/javascript" src="resources/admin/js/jQuery.js"></script>
<!-- <script type="text/javascript" src="resources/admin/js/fun.base.js"></script> -->

<script type="text/javascript">
    $(function(){

        $(':checkbox[name="auto_login"]').click(function(){

            if($(this).is(':checked')){

                $(':checkbox[name="check"]').prop('checked',true);
            }
        })

        $('.code').click(function(){

            var ran =Math.random();
            $(this).find('img').attr('src', 'index.php?c=admin&a=code&admin=1&r='+ran);

        });




    })


</script>


<!--[if IE 6]>
<script src="js/DD_belatedPNG.js" type="text/javascript"></script>
<script>DD_belatedPNG.fix('.png')</script>
<![endif]-->
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器：360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。</p>
<p>More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a></p>
</div>
</body>
</html>